﻿//
// Created by wellwei on 2023/12/5.
//
#include <string>

#pragma once

class Book {
private:
	std::string name;      // 书名
	std::string author;    // 作者
	std::string ISBN;      // ISBN 号
	double price;          // 定价
	std::string publisher; // 出版社
    std::string publishDate; // 出版日期

	std::string barcode;  // 条码号
	int classification;   // 分类号
	std::string location; // 馆藏地

	int total;     // 馆藏总量
	int available; // 可借数量

    int index;      // 书籍索引

public:
	Book();

	Book(std::string name, std::string author, std::string ISBN, double price, std::string publisher, std::string publishDate, std::string barcode, int classification, std::string location, int total, int available);

	void setName(std::string name);

	void setAuthor(std::string author);

	void setISBN(std::string ISBN);

	void setPrice(double price);

	void setPublisher(std::string publisher);

    void setPublishDate(std::string publishDate);

	void setBarcode(std::string barcode);

	void setClassification(int classification);

	void setLocation(std::string location);

	void setTotal(int total);

	void setAvailable(int available);

    void setIndex(int index);


	std::string getName();

	std::string getAuthor();

	std::string getISBN();

	double getPrice() ;

	std::string getPublisher();

    std::string getPublishDate();

	std::string getBarcode();

	int getClassification();

	std::string getLocation();

	int getTotal();

	int getAvailable();

    int getIndex();

	void showInfo();

	void showInfo1();
};
